package quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import service.APIService;

import java.io.IOException;

/**
 * Created by yanglq on 2018/4/8.
 */
public class TokenJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        APIService apiService = new APIService();
        try {
            apiService.getToken();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
